package com.wms.mapper;

import com.wms.dto.ArrivalDetailDto;
import com.wms.entity.ArrivalDetail;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ArrivalDetailMapper {
    /**
     * 保存到货明细
     * @param id 到货单id
     * @param batchNo 批次号
     * @param arrivalDetailList 到货明细
     * @return
     */
    int saveArrivalDetail(@Param("id") int id,@Param("batchNo") String batchNo ,@Param("arrivalDetailList") List<ArrivalDetail> arrivalDetailList);

    /**
     * 批量更新到货明细
     * @param arrivalDetailDtoList
     * @return
     */
    int batchUpdateaArrivalDetail(@Param("arrivalDetailDtoList") List<ArrivalDetailDto> arrivalDetailDtoList);
}
